import sys
import datetime


class Logger(object):

    def __init__(self):
        pass

    @classmethod
    def info(cls, message: str, new_line=True):
        message = ('\r\n' if new_line else '\r') + datetime.datetime.now().strftime(
            '%Y-%m-%d %H:%M:%S') + '| ' + message
        sys.stdout.write(message)
        sys.stdout.flush()
